CC = gcc -g

all:hw_decode zet_decode

hw_decode:readdata.c hw_strugen.c bill_dict.c
	${CC} -o hw_decode readdata.c hw_strugen.c bill_dict.c
zet_decode:readdata.c zet_strugen.c bill_dict.c berdecoder.c
	${CC} -o zet_decode readdata.c zet_strugen.c bill_dict.c berdecoder.c

readdata.c:strugen.h 
bill_dict.c:bill_dict.h
berdecoder.c:berdecoder.h
strugen.c:strugen.h

hw_strugen.c:hw_strugen.h strugen.h

zet_strugen.c:zet_strugen.h strugen.h berdecoder.h

.PHONY:clean
clean:
	-rm *.exe
